import { http } from "@/uni-sub-base/service/request.js"
let baseUrlShop = "Logistics/"
import { getBaseUrls } from "@/utils/appUrl.js"
//配送员订单列表
export function OrderPage(data) {
    return http.post({
        url: getBaseUrls().baseUrlTms + baseUrlShop + "OrderPage",
        data: data,
    })
}
//配送员订单详情
export function OrderDetail(id) {
    return http.get({
        url: getBaseUrls().baseUrlTms + baseUrlShop + "OrderDetail?id=" + id,
    })
}

//配送员订单详情(通过物流单号)
export function OrderInfoByNumber(number) {
    return http.get({
        url: getBaseUrls().baseUrlTms + baseUrlShop + "OrderInfoByNumber?number=" + number,
    })
}
//配送员操作
export function OrderHandle(data) {
    return http.post({
        url: getBaseUrls().baseUrlTms + baseUrlShop + "OrderHandle",
        data: data,
    })
}
//
export function VehicleBingInfo() {
    return http.post({
        url: getBaseUrls().baseUrlTms + baseUrlShop + "VehicleBingInfo",
    })
}
//设置配送员的默认仓库
export function SetDefaultRepository(repositoryId) {
    return http.get({
        url: getBaseUrls().baseUrlTms + baseUrlShop + "SetDefaultRepository?repositoryId=" + repositoryId,
    })
}
//仓库列表
export function PageRepository(data) {
    return http.post({
        url: getBaseUrls().baseUrlTms + baseUrlShop + "PageRepository",
        data: data,
    })
}
//
export function MapSendPage(data) {
    return http.post({
        url: getBaseUrls().baseUrlTms + baseUrlShop + "MapSendPage",
        data: data,
    })
}
export function MapSendDetail(path) {
    return http.get({
        url: getBaseUrls().baseUrlTms + baseUrlShop + "MapSendDetail" + path,
    })
}
export function SetMapSendDelivery(data) {
    return http.post({
        url: getBaseUrls().baseUrlTms + baseUrlShop + "SetMapSendDelivery",
        data,
    })
}
export function OrderDelivery(data) {
    return http.post({
        url: getBaseUrls().baseUrlTms + baseUrlShop + "OrderDelivery",
        data,
    })
}
